<div id="pageInfo" data-title="商品搜索"></div>
<style>
.s_type{
	color: red;
	text-align: right;
	line-height: 0.3rem;
}
</style>

<?php 
	//$openId = 'o7WLlwS6UmVJ2nPgYrqBf7eP7EFg';
	$openId = ISession::get('wechat_openid');
?>

{if:$resultData}
<aside class="goods_sort">
    {foreach:items=search_goods::getOrderType()}
    <span class="sort_btn" onclick="gourl('{echo:search_goods::searchUrl(array('order','by'),array($key,search_goods::getOrderBy($key)))}')">{$item}</span>
    {/foreach}
</aside>
<section class="goods_list">
    <ul>
        {foreach:items=$resultData}
        <li>
            <a href="{url:/site/products/id/$item[id]}">
                <i class="photo"><img class="goods_photo" src="{url:/pic/thumb/img/$item[img]/w/200/h/200}" alt="{$item['name']}"></i>
                <h3 class="name"><strong>{$item['name']}</strong></h3>
                {if:$item['good_type'] == 2}
					<h5 class="s_type">到店</h5>
				{/if}
				
                <del class="old_price">￥{$item['market_price']}</del>
                <em class="price">￥{$item['sell_price']}</em>
                 <?php 
                	echo $item['xiaoshouticheng'] ;
                	$tichen= 23 *  $item['xiaoshouticheng'] / 100;
					$tichen = substr(sprintf("%.3f",$tichen),0,-1);
                ?>
                {query:name = seller where=wecharbang eq '$openId'}	
                
               
                <span style="display: block;margin-top: 10px;">销售提成：<span style="color: red">￥{$tichen}</span></span>
            	{/query}
            </a>
        </li>
        {/foreach}
    </ul>
</section>
{$goodsObj->getPageBar()}
{else:}
<section class="nodata">搜索结果为零</section>
{/if}




